package com.zhouh.patterns.com.zhouh.create.factory.factoryMethod;

import com.zhouh.patterns.com.zhouh.entity.Bag;
import com.zhouh.patterns.com.zhouh.entity.bag.BananaBag;

/**
 * 工厂方法模式
 */
public class BananaBagFactory implements BagFactory{

    @Override
    public Bag getBag(){
        return new BananaBag();
    }
}
